Skip to content

feat(gitlab): full group retrieval#4408

Open
CorentinPtrl wants to merge 3 commits intodexidp:masterfrom
CorentinPtrl:master
Open

feat(gitlab): full group retrieval#4408
CorentinPtrl wants to merge 3 commits intodexidp:masterfrom
CorentinPtrl:master

Conversation

@CorentinPtrl
Copy link

Overview

Implements full group retrieval for the GitLab connector. and adds all the mappings of GitLab access levels into group-permission suffixes.

What this PR does / why we need it

Implement fetching all groups and per-group membership from the GitLab API so Dex can return the complete set of groups for a user (not only those in the /oauth/userinfo response). See upstream discussion: https://gitlab.com/gitlab-org/gitlab/-/issues/340905. The filtering via groups will prevent overly large tokens. Full group retrieval now requires the read_api scope.

CorentinPtrl and others added 3 commits November 6, 2025 18:06
Signed-off-by: CorentinPtrl <pitrel.corentin@gmail.com>
Signed-off-by: CorentinPtrl <pitrel.corentin@gmail.com>
cardoe added a commit to cardoe/dex that referenced this pull request Dec 9, 2025
@cardoe
Copy link
Contributor

cardoe commented Dec 9, 2025

To further this along, I've pulled this PR into build that I made at https://github.com/cardoe/dex/releases/tag/v2.44.90 You can grab the container to test with at ghcr.io/cardoe/dex:v2.44.90 and report back on this PR.

@nabokihms
Copy link
Member

Hello! Thanks for the PR. I'm ok with the feature if it is toggleable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments